package chapter3;

public class TestEx2 {
    public static void main(String[] args) {
        Ex2 s=new Ex2();
        s.setLength(60);
        s.setWidth(60);
        System.out.println("矩形的面积是"+s.getArea());
        System.out.println("矩形的周长是"+s.getPerimeter());


    }


}
